{include "header.tpl"}

{if count($descendants)}
	<ul class='menu_subgroups'>
		{foreach $descendants as $d}
			{if $d.depth==1}
			</li>
			<li class='depth_{$d.depth}'>
				<a href="/group.php?groupId={$d.id}">
					{if $d.image}
						<img src="{thumbnail width=70 height=70}{$d.image}{/thumbnail}" alt="{$d.name}" title="{$d.name}"  />
					{/if}
					<div>
						{$d.name}
					</div>
				</a>
			{else}
				{if $d.isFirstChild}<ul>{/if}
					<li class='depth_{$d.depth}'>
						<a href="/group.php?groupId={$d.id}">{$d.name}</a>
					</li>
				{if $d.isLastChild}</ul>{/if}
			{/if}
		{/foreach}
			</li>
	</ul>
{/if}

<div>
	{$group->descr()}
	<br>
</div>

{include "components/products.tpl"}

{include "footer.tpl"}